/*
 * @Descripttion: 日志打印
 * @LastEditors: chen.long
 * @LastEditTime: 2024-02-24 11:02:20
 */

/**
 * @Author: chen.long
 * @Descripttion:
 * @Param: 警报打印
 * @param {string} msg 需要打印的消息
 * @param {any} data 需要打印的数据
 */
export function warn(msg: string, data?: any): void {
  console?.warn(`[ybmicro warn]: ${msg}`, data);
}

/**
 * @Author: chen.long
 * @Descripttion: 报错打印
 * @Param:
 * @param {string} msg 需要打印的消息
 * @param {any} data 需要打印的数据
 */
export function error(msg: string, data?: any): void {
  console?.error(`[ybmicro error]: ${msg}`, data);
}
